//统一引入vue
import Vue from 'vue'
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'

//统一处理公共头尾巴
//*********以下处理公共头和公共尾巴部分**************
import footer from '@/view/components/footer.html'
import header from '@/view/components/header.html'// 
import acss from '@/assets/css/page/header.css'
import menu from '@/assets/js/components/menu.json' 

const host = "http://localhost:8088";

console.log('menu ='+menu)

Vue.component('vue-header',{
    data:function(){
    	return {
	    	companyLogo: host+"/static/img/company-logo.jpg",
	    	menus:menu
    	}
    },
    template: header
});

Vue.component('vue-footer',{
    template: footer
});

new Vue({
	el:"#vue-usage",
	data:{
		host:"localhost:8088",
		lunbo:  {
					"src1": host+"/static/img/banner1.jpg",
					"src2": host+"/static/img/banner2.jpg",
					"src3": host+"/static/img/banner3.jpg",
					"src4": host+"/static/img/banner4.jpg"
				}	
	}
	
})

$(function() {
    $(".top-nav li").hover(function() {
        $(this).has("ul").children("ul").fadeIn();
    },
    function() {
        $(this).has("ul").children("ul").hide();
    });
   
})

//*********以上处理公共头和公共尾巴部分**************


//公共ajax方法